<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ include file="/WEB-INF/jsp/includes/common.jsp"%>
<html>
	<head>
		 <%@ include file="/WEB-INF/jsp/includes/head.jsp"%>
		<!--[if IE]>
   			<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
		<script type="text/javascript" src="${ctx }/js/lib/jquery.validate.js"></script>
		<script type="text/javascript" src="${ctx }/js/lib/jquery.validate.messages_cn.js"></script>
		<script type="text/javascript" src="${ctx }/js/base/validateinfo.js"></script>
		<script type="text/javascript" src="${ctx }/js/award/awarddetaillist.js"></script>
	</head>
	<body>
		<%@ include file="/WEB-INF/jsp/includes/logo.jsp"%>
		<div class="container">
			<div class="main clearfix">
				<%@ include file="/WEB-INF/jsp/includes/nav.jsp"%>
				<div class="container2 fl">
					<div class="main">
						<h4 class="mb10"><span><a href="${ctx }/activity/index.do">活动列表</a>&nbsp;>&nbsp;</span><span><a href="${ctx }/award/index.do?activeId=${activeId}">活动奖品</a>&nbsp;>&nbsp;</span><span class="fb">用户中奖列表</span></h4>
						<div class="content-wraper">
							<section class="award-config-disc">
							<input type="hidden" name="activeId" value="${activeId }" id="activeId"/>
							 <c:if test="${type==2 }">
									<div class="content">
										<div class="item">
											<div class="column-title">
												<h6>虚拟奖品显示列表</h6>
											</div>
											<div>
												<form action="${ctx }/award/toAwardDetailList.do" method="post">
													<input type="submit" class="btn-search btn btn2 fr mt5" value="筛选" />
													<label>
														<span>筛选条件：</span>
													</label>
													<input type="hidden" name="type" value="${type }"/>
													<input type="hidden" name="awardId" value="${awardId }" id="awardId"/>
													<input type="hidden" name="activeId" value="${activeId }" />
													用户ID:<input type="text" value="${ vUserId}"  name="vUserId" id="vUserId"/>
													用户昵称:<input type="text" value="${ vUserNick}" name="vUserNick" id="vUserNick"/>
													<select name="vWin">
														<nad:option name="vWin" list="#{'':请选择,0:已发出,1:未发出}" />
													</select>
												</form>
											</div>
										</div>
										<div class="item1">
											<div class="cont">
												<table cellspacing="0" border="1" width="100%">
													<thead>
														<tr>
															<th width="50">序号</th>
															<th width="150">卡号</th>
															<th width="120">密码</th>
															<th width="150">通行证</th>
															<th width="120">昵称</th>
															<th>中奖时间</th>
														</tr>
													</thead>
													<c:if test="${page.total>0 }">
														<nad:table dataList="${page.dataList }" >
															<tbody>
																<nad:row>
																	<c:if test="${DATALIST_CURRENTROW%2==0 }">
																		<tr class="odd">
																	</c:if>
																	<c:if test="${DATALIST_CURRENTROW%2==1 }">
																		<tr class="even">
																	</c:if>
																	<td><input type="checkbox" value=${awdid } name="awdid"/>${awdid }</td>
																	<td>${cardNo }</td>
																	<td>${cardPwd }</td>
																	<td>${passport }</td>
																	<td>${nickname }</td>
																	<td><nad:col name="winTime" format=""/></td>
																	</tr>
																</nad:row>
															</tbody>
														</nad:table>
													</c:if>
													<c:if test="${page.total<=0 }">
														<tr class="no-results">
															<td colspan="100%">未查询到结果！</td>
														</tr>
													</c:if>
												</table>
											</div>
										</div>
										<div class="ft mt10 clearfix">
											<div class="fl">
												<span class="mr10">
													<input type="checkbox" class="checked-all" />全选
												</span>
												<span class="oper">
													<c:if test="${actFaceStatus==1 or actFaceStatus==4 }">
														<input class="btn btn2 is-delete" type="button" value="删除" />
													</c:if>
												</span>
											</div>
										</div>
										<div class="pageno">
											<c:if test="${page.total>0 }">
												<nad:pagebar page="${page }" action="${ctx }/award/toAwardDetailList.do" />
											</c:if>
										</div>
									</div>
								</c:if>
								<c:if test="${type=='1' or type=='3' or type=='4'}">
									<div class="content">
										<div class="item">
											<div class="column-title">
											<c:if test="${type==1}">
												<h6>实物奖品显示列表</h6>
											</c:if>
											<c:if test="${type==3}">
												<h6>GB奖品显示列表</h6>
											</c:if>
											<c:if test="${type==4}">
												<h6>经验值显示列表</h6>
											</c:if>
											</div>
											<div style="text-align: right;">
												<form action="${ctx }/award/toAwardDetailList.do" method="post">
													<input type="hidden" name="type" value="${type }" />
													<input type="hidden" name="awardId" value="${awardId }" id="noVawardId"/>
													<input type="hidden" name="activeId" value="${activeId }" />
													<c:if test="${actFaceStatus==1 or actFaceStatus==4 }">
														<input type="button" class="btn btn2 fr mt5" value="更改数量" id="changeNum" style="margin-right: 50px;"/>
													</c:if>
													<input type="submit" class="btn-search btn btn2 fr mt5" value="筛选" />
													用户ID:<input type="text" value="${ userId}" name="userId"  />
													用户昵称:<input type="text" value="${ userNick}"  name="userNick"/>
												</form>
											</div>
										</div>
										<div class="item1">
											<div class="cont">
												<table cellspacing="0" border="1" width="100%">
													<thead>
														<tr>
															<th width="50">序号</th>
															<th width="100">奖品名称</th>
															<th width="150">通行证</th>
															<th width="120">昵称</th>
															<th width="120">中奖时间</th>
															<th>联系资料</th>
														</tr>
													</thead>
													<c:if test="${page.total>0 }">
														<nad:table dataList="${page.dataList }" >
															<tbody>
																<nad:row>
																	<c:if test="${DATALIST_CURRENTROW%2==0 }">
																		<tr class="odd">
																	</c:if>
																	<c:if test="${DATALIST_CURRENTROW%2==1 }">
																		<tr class="even">
																	</c:if>
																	<td>${DATALIST_CURRENTROW+1}</td>
																	<td>${name }</td>
																	<td><a href="javascript:void(0);" class="award-user-info-link" realName="${realName }" qq="${qq }" phone="${phone }" addressCode="${addressCode }" province = "${province }" city="${city }" address="${address }">${passport}</a></td>
																	<td>${nickname }</td>
																	<td><nad:col name="winTime" /></td>
																	<td>${address }</td>
																</tr>
																</nad:row>
															</tbody>
														</nad:table>
													</c:if>
													<c:if test="${page.total<=0 }">
														<tr class="no-results">
															<td colspan="100%">未查询到结果！</td>
														</tr>
													</c:if>
												</table>
											</div>
										</div>
										<div class="ft mt10 clearfix pageno">
											<c:if test="${page.total>0 }">
												<nad:pagebar page="${page }" action="${ctx }/award/toAwardDetailList.do" />
											</c:if>
										</div>
									</div>
								</c:if>
							</section>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 弹出层 -->
		<!-- 查看用户资料 -->
		<div id="awardUserInfo" title="用户资料" class="hidden">
			<p class="item">
				<label>用户姓名：</label>
				<span id="diaName"></span>
			</p>
			<p class="item">
				<label>联系方式：</label>
				<span id="diaPhone"></span>
			</p>
			<p class="item">
				<label>qq：</label>
				<span id="diaQQ"></span>
			</p>
			<p class="item">
				<label>收奖地址：</label>
				<span id="diaAddress"></span>
			</p>
		</div>
		<!-- 修改非虚拟物品的数量 -->
		<div id="changeNoVNum" title="修改数量" class="hidden">
			<p class="validate-tips"></p>
			<p class="item">
				<label>修改后的数量：</label>
				<input type="text" id="currNum" name="currNum"/>
			</p>
			<p>
				<center><label>当前剩余数量：${cNum}</label></center>
			</p>
		</div>
	</body>
</html>


